Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 31 Oct 2011 03:08:54 +0000 (12:08 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 31 Oct 2011 03:08:54 +0000 (12:08 +0900)
commit26edb35c39c32312acb1cc3af7d0ed1c41f6867c
tree80480e45b04a95598b117363f943682ab580b268
parent1aed9c0d13f9e2551c841b79731e7b2fb781298f
Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).

* xmenu.c (cleanup_widget_value_tree): New function.
(xmenu_show, xdialog_show): Use it in record_unwind_protect instead of
calling free_menubar_widget_value_tree directly (Bug#9830).
src/ChangeLog
src/xmenu.c